package com.rgp.apiboss.controller;

import com.rgp.apiboss.service.CarService;
import com.rgp.internalcommon.dto.CarDto;
import com.rgp.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-19 20:48
 */
@RestController
public class CarController {

    @Autowired
    private CarService carService;

    @PostMapping("car")
    public ResponseResult addCar(@RequestBody CarDto carDto){
        return carService.addCar(carDto);
    }
}